package com.phiture.erp.produce.dal.pojo.vo;

import cn.iocoder.yudao.framework.excel.core.annotations.DictFormat;
import cn.iocoder.yudao.framework.excel.core.convert.DictConvert;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;

@Schema(description = "管理后台 - 物料需求计划 Response VO")
@Data
@ExcelIgnoreUnannotated
public class ErpMaterialRequirementPlanRespVO {

    @Schema(description = "主键ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "11201")
    @ExcelProperty("主键ID")
    private Long id;

    @Schema(description = "主计划编码", requiredMode = Schema.RequiredMode.REQUIRED, example = "7906")
    @ExcelProperty("主计划编码")
    private String sourceBillNo;

    @Schema(description = "物料需求计划编码", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("物料需求计划编码")
    private String mrpNo;

    @Schema(description = "销售订单编码", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("销售订单编码")
    private String saleOrderNo;

    @Schema(description = "审批状态", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
    @ExcelProperty(value = "审批状态", converter = DictConvert.class)
    @DictFormat("erp_audit_status") // TODO 代码优化：建议设置到对应的 DictTypeConstants 枚举类中
    private Integer status;

    @Schema(description = "下达状态", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("下达状态")
    private Integer issuedStatus;

    @Schema(description = "物料需求计划描述", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("物料需求计划描述")
    private String mrpDesc;

    @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

}